function setLogin(username, password) {
	if (Modernizr.localstorage) {
		localStorage.setItem("Username", username);
		localStorage.setItem("Password", password);
	} else {
		
	}
}
function setId(id) {
	if (Modernizr.localstorage) {
		localStorage.setItem("Id", id);
	} else {
		
	}
}
function getUsername() {
	if (Modernizr.localstorage) {
		return localStorage.getItem(username);
	} else {
		
	}
}
function getId() {
	if (Modernizr.localstorage) {
		return localStorage.getItem(id);
	} else {
		
	}
}

function getPassword() {
	if (Modernizr.localstorage) {
		return localStorage.getItem(password);
	} else {
		
	}
}

function clearLogin(){
	if (Modernizr.localstorage) {
		localStorage.setItem("Username", null);
		localStorage.setItem("Password", null);
	} else {
		
	}
}

function checkLogin(){
	if(Modernizr.localstorage){
		if(localStorage.getItem("Username") != null && localStorage.getItem("Password") != null && localStorage.getItem("Username") != "null" && localStorage.getItem("Password") != "null"){
			return true;
		} else {
			return false;
		}
	}
}